< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03090401.xhp

(section: call) (bookmark: bm_id3154422)
Call statement

Call ステートメント

Call Statement [Runtime]
Call ステートメント [実行時](hd_id3154422.1)

Transfers the control of the program to a subroutine, a function, or a DLL procedure.
プログラムの制御を、サブルーチン、関数、DLL プロシージャーなどに渡します。(par_id3153394.2)

(/section: call)

Syntax:
構文:(hd_id3153345.3)

[Call] Name [Parameter]
[Call] Name [Parameter](par_id3150984.4)

Parameters:
パラメータ:(hd_id3150771.5)

Name: Name of the subroutine, the function, or the DLL that you want to call
Name: 呼び出すサブルーチン、関数、DLL の名前。(par_id3148473.6)

Parameter: Parameters to pass to the procedure. The type and number of parameters is dependent on the routine that is executing.
Parameter: プロシージャーに渡すパラメータ。どのようなパラメータをいくつ渡すかは、実行するルーチンに依存します。(par_id3148946.7)

Note Icon 注マーク A keyword is optional when you call a procedure. If a function is executed as an expression, the parameters must be enclosed by brackets in the statement. If a DLL is called, it must first be specified in the Declare-Statement.
プロシージャー呼び出し時のキーワードは省略可能です。関数を表式の一部として実行する場合、ステートメント中に記述するパラメータはかっこで囲む必要があります。DLL を呼び出す場合は、最初に Declare ステートメント による宣言をしておく必要があります。(par_id3154216.8)

Example:
例:(hd_id3125865.9)

Sub ExampleCall
Sub ExampleCall(par_id3159254.12)

Dim sVar As String
Dim sVar As String(par_id3161832.13)

sVar = "Office"
sVar = "Star Suite"(par_id3147317.14)

Call f_callFun sVar
Call f_callFun sVar(par_id3145273.15)

end Sub
end Sub(par_id3147435.16)

Sub f_callFun (sText as String)
Sub f_callFun (sText as String)(par_id3155414.18)

Msgbox sText
Msgbox sText(par_id3151112.19)

end sub
end sub(par_id3148646.20)


< Prev / Next >